package cn.com.kisen.kdc.service;

import cn.com.kisen.kdc.domain.OpcTag;
import cn.com.kisen.kdc.domain.TagInfo;
import cn.com.kisen.kdc.mapper.dwh.TagInfoMapper;
import cn.com.kisen.kdc.mapper.mms.OpcTagMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OpcTagService {

    @Autowired
    private OpcTagMapper opcTagMapper;

    @Autowired
    private TagInfoMapper tagInfoMapper;

    public OpcTag loadMMSTagById(Long opcTagId) {
        return opcTagMapper.loadById(opcTagId);
    }

    public TagInfo loadDWHTagById(Long tagInfoId) {
        return tagInfoMapper.loadById(tagInfoId);
    }
}
